/**
 * 
 */
package com.swd2010.mobileSearch.data.internalTransfer;

import com.swd2010.mobileSearch.data.PersonBean;

/**
 * @author haui
 *
 */
public class ApplicationDataTransfer {

	//http://developer.android.com/reference/android/app/Application.html
	
	
	private static ApplicationDataTransfer  appDataTransfer = null;
	
	private PersonBean currentWorkingPersonBean = new PersonBean();
	
	private String baseUrl = null;
	
	
	public static synchronized ApplicationDataTransfer getInstance(){

		if ( appDataTransfer == null ){
			
			appDataTransfer = new ApplicationDataTransfer();
			
			appDataTransfer.baseUrl = "http://10.0.2.2:8080/";
			
		}
						
		return appDataTransfer;
		
	}
	
	
	public void setCurrentWorkingPerson(PersonBean personBean){

		this.currentWorkingPersonBean = personBean;
		
	}
	
	
	public PersonBean getCurrentWorkingPerson(){
		
		return this.currentWorkingPersonBean;
	}


	/**
	 * @return the baseUrl
	 */
	public String getBaseUrl() {
		return baseUrl;
	}


	/**
	 * @param baseUrl the baseUrl to set
	 */
	public void setBaseUrl(String baseUrl) {
		this.baseUrl = baseUrl;
	}
	
	
	
	
}
